import request from '@/utils/request'

// 查询通用考核列表
export function listPerformance(query) {
  return request({
    url: '/examine/performance/list',
    method: 'get',
    params: query
  })
}

// 查询通用考核详细
export function getPerformance(id) {
  return request({
    url: '/examine/performance/' + id,
    method: 'get'
  })
}

// 新增通用考核
export function addPerformance(data) {
  return request({
    url: '/examine/performance',
    method: 'post',
    data: data
  })
}

// 修改通用考核
export function updatePerformance(data) {
  return request({
    url: '/examine/performance',
    method: 'put',
    data: data
  })
}

// 删除通用考核
export function delPerformance(id) {
  return request({
    url: '/examine/performance/' + id,
    method: 'delete'
  })
}

// 统计接口
export function performanceStatistics(query) {
  return request({
    url: '/examine/performance/statistics',
    method: 'get',
    params: query
  })
}

// 统计人员明细接口
export function statisticsDetail(query) {
  return request({
    url: '/examine/performance/statistics/detail',
    method: 'get',
    params: query
  })
}

// 多周期统计接口
export function performanceStatisticsMore(query) {
  return request({
    url: '/examine/performance/statisticsmore',
    method: 'get',
    params: query
  })
}

